﻿#region using
using System;
using System.Windows.Forms; 
#endregion

namespace AifMessageHeaderEditor.Gui
{
    static class Program
    {
        private static string[] _args;

        static string FileName
        {
            get
            {
                string fileName = string.Empty;

                if (_args != null)
                {
                    if (_args.Length > 0)
                    {
                        if (System.IO.File.Exists(_args[0]))
                            fileName = _args[0];
                    }
                }
                return fileName;
            }
        }

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {

            _args = args;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new frmHeaderEditor(FileName));
        }
    }
}